package com.ehome.poct.core.repository.check;

import com.ehome.core.repository.BaseRepository;
import com.ehome.poct.core.api.dto.check.CheckReportDTO;
import com.ehome.poct.core.api.dto.check.TestRecordDetailDTO;
import com.ehome.poct.core.api.dto.check.TestReportDataConfigDTO;
import com.ehome.poct.core.api.dto.checkdata.BldCheckDataDTO;
import com.ehome.poct.core.api.dto.report.ReportItemDTO;
import com.ehome.poct.core.api.dto.report.ReportRequestDTO;

import java.util.List;

public interface TestRecordDetailRepository extends BaseRepository<TestRecordDetailDTO> {
    void updateByOrderNo(ReportItemDTO r, ReportRequestDTO reportRequestDTO, List<TestReportDataConfigDTO> dataReportConfigList);

    void updateByOrderNo(CheckReportDTO checkReport, BldCheckDataDTO data);

    /**
     * 支付前置三联测更新 sno2、testPeoplePortion2 字段
     *
     * @param testRecordDetailDTO
     */
    void updateUnitReportSno2(TestRecordDetailDTO testRecordDetailDTO);

    void delSaaAndCrpRecord(String orderNo, Integer stripTypeCode);

    void updateByOrderNoAndStripTypeCode(TestRecordDetailDTO testRecordDet);

    /**
     * 根据订单号 检查项查询检查明细
     *
     * @param orderNo
     * @param stripTypeCodeList
     * @return
     */
    List<TestRecordDetailDTO> findByOrderNoAndStripTypeCodeIn(String orderNo, List<Integer> stripTypeCodeList);
}
